package com.ruihang.generalibrary.ui.util;

import android.support.annotation.NonNull;
import android.view.View;

import com.ruihang.ijkplaylib.bean.IPlayClarity;

import java.util.List;

/**
 * Created by liuyu on 2017/9/15.
 */

public interface IPlayer {

    void playWithSource(String url,boolean isAuto);
    void playWithSourceList(List<? extends IPlayClarity> list,int pos);
    void setAutoPlay(boolean auto);

    /**
     * 初始化playerview,
     * @return playerview的布局的view
     */
    @NonNull
    View initPlayerView();
}
